{extend name="layout" /}

{block name="page-header"}{/block}

{block name="content"}
{notempty name="default_pass"}
<div class="alert alert-danger alert-dismissable">
    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
    <h3 class="font-w300 push-15">安全提示</h3>
    <p>超级管理员默认密码未修改，建议马上 <a class="alert-link link-effect" href="{:url('user/index/edit', ['id' => 1])}">修改</a>。</p>
</div>
{/notempty}
{// 后台首页钩子}
<div class="row">
    <div class="col-md-12">
        <div class="block block-bordered">
            <div class="block-header bg-gray-lighter">
                <h3 class="block-title">接口文档</h3>
            </div>
            <div class="block-content">
                <iframe  src="/admin.php/apidocs/wechat/index" id="mainiframe" width="100%" height="100%" frameborder="0" scrolling="auto"></iframe>
            </div>
        </div>
    </div>
</div>

{/block}

{block name="script"}
<script>
    $(document).ready(function () {
        function changeFrameHeight(){
            var ifm= document.getElementById("mainiframe");
                    ifm.height=document.documentElement.clientHeight-56;
        }
        window.onresize=function(){ changeFrameHeight();};
        $(function(){changeFrameHeight();});
    });
</script>
{/block}